<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center changePass_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub changePass_fd0_0'>
          <view class='flex flex-wrap align-center changePass_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  changePass_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='changePass_fd0_0_c1_c0'>修改密码</text>
          </view>
          <view class='flex flex-wrap align-center justify-end changePass_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout changePass_flex_1">
        <view class='flex flex-direction flex-wrap align-stretch flex-sub changePass_fd1_0'>
          <view class='flex flex-wrap align-center justify-between flex-sub changePass_fd1_0_c0'
            @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/My/odlpass/odlpass`">
            <text class='changePass_fd1_0_c0_c0'>旧密码验证修改</text>
            <text class='fu-iconfont2  changePass_fd1_0_c0_c1'>&#xe7f2;</text>
          </view>
          <view class='flex flex-wrap align-center justify-between flex-sub changePass_fd1_0_c1' v-if="info.is_bang==1"
            @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/My/chapasPh/chapasPh`">
            <text class='changePass_fd1_0_c0_c0'>手机号验证修改</text>
            <text class='fu-iconfont2  changePass_fd1_0_c0_c1'>&#xe7f2;</text>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->

    </view>
  </page-body>
</template>
<script>
  export default {
    components: {},


    data() {
      return {
		  info:{}
	  };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {
			this.getinfo()
    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
			//获取个人资料
						async getinfo() {
							
							let url=''
							if(uni.getStorageSync('USER_GROUP')==1){
								url=global.apiUrls.post66f4cf3a2bf31
							}else{
								url=global.apiUrls.post671a23b16d698
							}
							let datastate = await this.$api.get(url, {
								
							});
						
							if (datastate.data.code != 1) {
								this.$message.info(datastate.data.msg);
								return
							}
						
							this.info = datastate.data.data
							if(uni.getStorageSync('USER_GROUP')==2){
								this.info.is_bang=this.info.mobile?1:0
							}
							// this.signInShow = this.state.status
						},
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F6f6f6;
    background-size: 100% auto;
  }

  .changePass_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .changePass_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .changePass_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .changePass_fd0_0_c0 {
    width: 120rpx;
  }

  .changePass_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .changePass_flex_1 {
    padding: 24rpx;
  }

  .changePass_fd1_0_c1 {
    width: 100%;
    height: 200rpx;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .changePass_fd1_0_c0_c1 {
    font-size: 20rpx;
    color: rgba(153, 153, 153, 1);
  }

  .changePass_fd1_0_c0_c0 {
    font-size: 32rpx;
    line-height: 45rpx;
    color: rgba(51, 51, 51, 1);
  }

  .changePass_fd1_0_c0 {
    border-bottom: 1px solid rgba(238, 238, 238, 1);
    width: 100%;
    height: 200rpx;
    padding: 32rpx 0rpx 32rpx 0rpx;
  }

  .changePass_fd1_0 {
    background: #Fff;
    border-radius: 16rpx;
    background-size: 100% auto;
    padding: 0rpx 024rpx 0rpx 024rpx;
  }
</style>
